package com.vrp3d.common.enums;

/**
 * 通用异常枚举
 *
 * @author vrp3d
 */
public enum CommonExceptionEnum {

    /**
     * 通用异常信息
     */
    ID_CANNOT_BE_EMPTY("10001", "id不能为空"),
    REQUEST_PARAMETER_IS_EMPTY("10002", "请求参数为空"),
    DECODING_FAILED("10003", "解码失败"),
    CODE_EXCEPTION("10004", "编码异常"),
    REQUEST_PATH_DOES_NOT_EXIST("10005", "请求路径不存在"),
    NOT_LOGGED_IN("10006", "未登录"),
    JSON_PARSING_EXCEPTION("10007", "json解析异常"),
    REQUEST_PARAMETER_FORMAT_ERROR("10008", "请求参数格式错误"),

    MAIL_FAILED_TO_SEND("10009", "邮件发送失败"),

    FILE_DOES_NOT_EXIST("10010", "文件不存在"),
    FILE_COPY_FAILED("10011", "文件拷贝失败"),
    FILE_UPLOAD_FAILED("10012", "文件上传失败"),
    FILE_NAME_IS_EMPTY("10013", "文件名为空"),
    LANGUAGE_TYPE_ABNORMAL("10014", "语言类型异常"),

    /**
     * 展位相关
     */
    THE_WORK_NAME_WAS_MODIFIED_SUCCESSFULLY("20001", "作品名称修改成功"),
    WORK_NAME_CANNOT_BE_EMPTY("20002", "作品名称不能为空"),
    AUTHOR_NAME_MODIFIED_SUCCESSFULLY("20003", "作者名称修改成功"),
    AUTHOR_NAME_CANNOT_BE_EMPTY("20004", "作者名称不能为空"),
    SUCCESSFULLY_MODIFIED("20005", "年代修改成功"),
    THE_AGE_CANNOT_BE_EMPTY("20006", "年代不能为空"),
    SIZE_MODIFIED_SUCCESSFULLY("20007", "尺寸修改成功"),
    THE_SIZE_CANNOT_BE_EMPTY("20008", "尺寸不能为空"),
    INTRODUCTION_MODIFIED_SUCCESSFULLY("20009", "介绍修改成功"),
    INTRODUCTION_CANNOT_BE_EMPTY("20010", "介绍不能为空"),
    EXHIBIT_CATEGORY_MODIFIED_SUCCESSFULLY("20017", "展品类别修改成功"),
    EXHIBIT_CATEGORY_CANNOT_BE_EMPTY("20018", "展品类别不能为空"),
    THE_PRODUCTION_STANDARD_HAS_BEEN_MODIFIED_SUCCESSFULLY("20019", "制作标准修改成功"),
    PRODUCTION_STANDARD_CANNOT_BE_EMPTY("20020", "制作标准不能为空"),
    MODEL_MODIFICATION_SUCCEEDED("20021", "器型修改成功"),
    TYPE_CANNOT_BE_EMPTY("20022", "器型不能为空"),
    PATTERN_MODIFICATION_SUCCEEDED("20023", "图案修改成功"),
    PATTERN_CANNOT_BE_EMPTY("20024", "图案不能为空"),
    PROCESS_MODIFIED_SUCCESSFULLY("20025", "工艺修改成功"),
    CRAFT_CANNOT_BE_EMPTY("20026", "工艺不能为空"),
    CATEGORY_MODIFIED_SUCCESSFULLY("20027", "分类修改成功"),
    CATEGORY_CANNOT_BE_EMPTY("20028", "分类不能为空"),
    THE_MATERIAL_IS_MODIFIED_SUCCESSFULLY("20029", "用料修改成功"),
    MATERIAL_CANNOT_BE_EMPTY("20030", "用料不能为空"),
    HIGHLY_MODIFIED_SUCCESSFULLY("20031", "高度修改成功"),
    CAL_MODIFIED_SUCCESSFULLY("20032", "口径修改成功"),
    BELLY_DIAMETER_MODIFIED_SUCCESSFULLY("20033", "肚径修改成功"),
    LOW_PATH_MODIFIED_SUCCESSFULLY("20034", "低径修改成功"),
    CONFIGURATION_MODIFIED_SUCCESSFULLY("20035", "配置修改成功"),
    THE_CONFIGURATION_CANNOT_BE_EMPTY("20036", "配置不能为空"),
    PROCESS_CHARACTERISTICS_MODIFIED_SUCCESSFULLY("20037", "工艺特色修改成功"),
    CRAFT_FEATURE_CANNOT_BE_EMPTY("20038", "工艺特色不能为空"),
    ARTISTIC_FEATURES_MODIFIED_SUCCESSFULLY("20039", "艺术特色修改成功"),
    ARTISTIC_FEATURES_CANNOT_BE_EMPTY("20040", "艺术特色不能为空"),
    THE_EXHIBITOR_SUCCESSFULLY_MODIFIED("20041", "送展人修改成功"),
    THE_EXHIBITOR_CANNOT_BE_EMPTY("20042", "送展人不能为空"),
    THE_EXHIBITOR_PHONE_SUCCESSFULLY_MODIFIED("20043", "送展人电话修改成功"),
    THE_EXHIBITOR_PHONE_CANNOT_BE_EMPTY("20044", "送展人电话不能为空"),
    THE_DOCKING_PERSON_HAS_BEEN_MODIFIED_SUCCESSFULLY("20045", "对接人员修改成功"),
    THE_DOCKING_PERSON_CANNOT_BE_EMPTY("20046", "对接人员不能为空"),
    PRICE_MODIFIED_SUCCESSFULLY("20047", "售价修改成功"),
    REMARK_MODIFIED_SUCCESSFULLY("20048", "备注修改成功"),
    REMARKS_CANNOT_BE_EMPTY("20049", "备注不能为空"),
    PORCELAIN_ID_MODIFIED_SUCCESSFULLY("20050", "自定义瓷器id修改成功"),

    AUDIO_MODIFIED_SUCCESSFULLY("20011", "音频修改成功"),
    AUDIO_CANNOT_BE_EMPTY("20012", "音频不能为空"),
    MODEL_MODIFIED_SUCCESSFULLY("20013", "模型修改成功"),
    MODEL_CANNOT_BE_EMPTY("20014", "模型不能为空"),
    PICTURE_MODIFIED_SUCCESSFULLY("20015", "图片修改成功"),
    PICTURE_CANNOT_BE_EMPTY("20016", "图片不能为空"),

    AUDIO_SUFFIX_DOES_NOT_MEET_SPECIFICATIONS("20050", "音频后缀不符合规范"),
    MODEL_SUFFIX_DOES_NOT_MEET_SPECIFICATIONS("20051", "模型压缩包后缀不符合规范"),
    PICTURE_SUFFIX_DOES_NOT_MEET_SPECIFICATIONS("20052", "图片后缀不符合规范"),

    /**
     * 展厅相关
     */
    SHOWROOM_NAME_AVAILABLE("21001", "展厅名称可用"),
    SHOWROOM_NAME_ALREADY_EXISTS("21002", "输入的展厅名称已存在,请更换展厅名称"),
    SUCCESSFULLY_ADDED_EXHIBITION_INFORMATION("21003", "展厅信息新增成功"),
    SUCCESSFULLY_UPDATE_EXHIBITION_INFORMATION("21004", "展厅信息修改成功"),
    THE_EXHIBITION_HALL_DOES_NOT_EXIST("21005", "展厅不存在"),
    SUCCESSFULLY_DELETED_EXHIBITION_HALL("21006", "展厅删除成功"),
    SUBMITTED_FOR_REVIEW_SUCCESSFULLY("21007", "提交待审核成功"),
    SUBMITTED_FOR_REVIEW("21008", "已经提交审核,请勿重复提交"),
    THE_AUDIT_OF_THE_EXHIBITION_HALL_HAS_BEEN_PASSED("21009", "展厅审核已通过"),
    THE_AUDIT_OF_THE_EXHIBITION_HALL_HAS_NOT_BEEN_PASSED("20010", "展厅审核未通过"),
    THE_AUDIT_STATUS_OF_THE_EXHIBITION_HALL_IS_DELETE("20011", "展厅审核状态异常"),
    THE_AUDIT_STATUS_OF_THE_EXHIBITION_HALL_IS_UNDER_REVIEW("20012","展厅正在审核中"),

    /**
     * 新闻相关
     */
    NEWS_HEADLINES_AVAILABLE("22001", "新闻标题可用"),
    NEWS_TITLE_ALREADY_EXISTS("22002", "新闻标题已存在"),
    NEWS_TITLE_CANNOT_BE_EMPTY("22003", "新闻标题不能为空"),
    NEW_NEWS_SUCCESS("22004", "新增新闻成功"),
    EDIT_NEWS_SUCCESSFULLY("22005", "修改新闻成功"),
    NEWS_DOES_NOT_EXIST("22006", "新闻不存在"),
    NEWS_DELETED_SUCCESSFULLY("22007", "新闻删除成功"),

    ;

    private String code;
    private String msg;

    CommonExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
